<div class="modal fade" id="createProjectModal" tabindex="-1" role="dialog" aria-labelledby="createProjectModal" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="createProjectModal">新建项目</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            {!! Form::open(['route' => 'projects.store', 'method' => 'post','files'=>true]) !!}
            <div class="modal-body">

                <div class="form-group">
                    {!! Form::label('name', '项目名称：') !!}
                    {!! Form::text('name','',['class'=>'form-control']) !!}
                    {!! $errors->create->first('name','<div class="alert alert-danger">:message</div>') !!}
                </div>
                <div class="form-group">
                    {!! Form::label('thumb', '项目文件：') !!}
                    {!! Form::file('thumb',['class'=>'form-control-file']) !!}
                    {!! $errors->create->first('thumb','<div class="alert alert-danger">:message</div>') !!}
                </div>
                {{--  @include('errors._error')  --}}
                {{--  @if ($errors->create->any())
                <ul class="alert alert-danger">
                    @foreach ($errors->create->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            @endif  --}}
            </div>

            <div class="modal-footer">
                
                {!! Form::submit('提交',['class' => 'btn btn-primary']) !!}
            </div>
            {!! Form::close() !!}
        
        </div>
    </div>
</div>